<div class="bjui-pageContent">
    <form action="{:U($Think.ACTION_NAME)}" class="pageForm" data-toggle="validate" data-reload-navtab="true">
            <input type="hidden" id="pk" name="info[uid]" value="{$info.uid}" />
            <input type="hidden" name="info[username]" value="{$info.username}" />
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
            
                <tr>
                    <td>
                        <label for="inputField" class="control-label">用户名</label>
                    </td>
                    <td>
                        <input <if condition="ACTION_NAME eq 'editAdmin'">disabled="disabled"</if>name="info[username]" type="text" class="form-control input-sm" value="{$info.username}" />
                    </td>
                    <td>
                        <label for="inputField" class="control-label">姓名</label>
                    </td>
                    <td>
                        <input name="info[name]" type="text" class="form-control input-sm" value="{$info.name}" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="inputField" class="control-label">昵称</label>
                    </td>
                    <td>
                        <input name="info[nickname]" id="nickname" type="text" class="form-control input-sm" value="{$info.nickname}" />
                    </td>
                    <td>
                        <label for="inputField" class="control-label">密码</label>
                    </td>
                    <td>
                        <input class="form-control input-sm" name="info[pwd]" id="pwd" type="password" value="" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="inputField" class="control-label">角色</label>
                    </td>
                    <td>
                        <select name="info[roleid]" class="form-control input-sm">
                            <volist name="roleAll" id="vo">
                                <option value="{$vo['id']}">{$vo['name']}</option>
                            </volist>
                        </select>
                    </td>
                    <td>
                        <label for="inputField" class="control-label">性别</label>
                    </td>
                    <td>
                        <select name="info[sex]" class="form-control input-sm">
                            <if condition="$info.sex eq 1">
                                <option value="1" selected>男</option>
                                <option value="2">女</option>
                                <else/>
                                <option value="1">男</option>
                                <option value="2" selected>女</option>
                            </if>
                        </select>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <label for="inputField" class="control-label">电话</label>
                    </td>
                    <td>
                        <input class="form-control input-sm" name="info[tel]" type="text" value="{$info.tel}" />
                    </td>
                    <td>
                        <label for="inputField" class="control-label">手机</label>
                    </td>
                    <td>
                        <input class="form-control input-sm" name="info[mobile]" type="text" value="{$info.mobile}" />
                    </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="inputField" class="control-label">邮箱地址</label>
                    </td>
                    <td>
                        <input name="info[email]" id="email" type="text" class="form-control input-sm" value="{$info.email}" />
                    </td>
                    <td>
                        <label for="inputField" class="control-label">状态</label>
                    </td>
                    <td>
                        <select name="info[status]" class="form-control input-sm">
                            <if condition="$info.status eq 1">
                                <option value="1" selected>启用</option>
                                <option value="0">禁用</option>
                                <else/>
                                <option value="1">启用</option>
                                <option value="0" selected>禁用</option>
                            </if>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="inputField" class="control-label">备注</label>
                    </td>
                    <td colspan="3">
                        <textarea name="info[remark]" cols="40" class="form-control input-sm" style="height:100px">{$info.remark}</textarea>
                    </td>
                </tr>

            </tbody>
        </table>
    </form>
</div>

<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>